package com.len.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.UUID;

@Data
@Document(collection = "agent_relation")
public class AgentRelationEntity {

    @Field("id")
    private String id = UUID.randomUUID().toString().replace("-", "").toLowerCase();

    private Long createTime = System.currentTimeMillis()/1000;

    private String upId;

    private String downId;
}
